public class Dog {
    //编写一个Dog类，包含name、age、weight属性
    //类中声明一个say方法，返回String类型，方法返回信息中包含所有属性值
    public String name;
    public int age;
    public double weight;
    public Dog(String name,int age,double weight){
        this.name=name;
        this.age=age;
        this.weight=weight;
    }
    public String say(){
        return "姓名："+name+"\n年龄："+age+"\n体重："+weight;
    }
}
